﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Web.Services;
using System.Web.Services.Protocols;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class BGM_ProjectReport : System.Web.Services.WebService
    {
        IBLL_BGM_ProjectReport bll = new B_BGM_ProjectReport();

        [WebMethod]
        public List<M_BGM_ProjectReport> GetFull(string bgm_proj_seq, string bgm_proj_exp_seq
            , string rpt_type)
        {
            return (List<M_BGM_ProjectReport>)bll.GetFull(bgm_proj_seq
            , bgm_proj_exp_seq, rpt_type);
        }

        [WebMethod]
        public List<M_BGM_ProjectReport> GetList(string bgm_proj_seq, string bgm_proj_exp_seq
            , string rpt_type)
        {
            return (List<M_BGM_ProjectReport>)bll.GetList(bgm_proj_seq
            , bgm_proj_exp_seq, rpt_type);
        }

        [WebMethod]
        public List<M_BGM_ProjectReport> GetCalculateList(string bgm_proj_seq
            , string bgm_proj_exp_seq, string rpt_type, string bgm_rec_exp_seq
            , string bgm_trans_from_seq, string bgm_trans_to_seq
            , string icm_ppr_item_seq, string icm_pr_item_seq
            , string icm_po_item_seq, string icm_dn_item_seq
            , string bgm_proj_oper_exp_seq)
        {
            return (List<M_BGM_ProjectReport>)bll.GetCalculateList(bgm_proj_seq
            , bgm_proj_exp_seq, rpt_type, bgm_rec_exp_seq
            , bgm_trans_from_seq, bgm_trans_to_seq
            , icm_ppr_item_seq, icm_pr_item_seq
            , icm_po_item_seq, icm_dn_item_seq
            , bgm_proj_oper_exp_seq);
        }

        [WebMethod]
        public M_BGM_ProjectReport GetInfo(string seq)
        {
            return bll.GetInfo(seq);
        }

        [WebMethod]
        public void Insert(M_BGM_ProjectReport info)
        {
            bll.Insert(info);
        }

        [WebMethod]
        public void Update(M_BGM_ProjectReport info)
        {
            bll.Update(info);
        }

        [WebMethod]
        public void Delete(M_BGM_ProjectReport info)
        {
            bll.Delete(info);
        }

        [WebMethod]
        public void UpdateStatus(M_BGM_ProjectReport info)
        {
            bll.UpdateStatus(info);
        }

        private void InitializeComponent()
        {

        }
    }
}
